home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 E…tra 100 Bedste Programmer / K-CD_2004_Ekstra_100_Gratis_Programmer.iso / Windows / X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinXP Start Menu 8.xpl < prev    next >
Encoding:
XSetup plugin  |  2004-04-20  |  5.9 KB  |  164 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="9"
  3. "COUNT"="1"
  4. "UIPATH 1"="Appearance\Start menu\Windows XP\Classic Start Menu"
  5. "UIPATH 2"="Appearance\Start menu\Windows XP\New Start Menu"
  6. "NAME"="Start Menu Options"
  7. "VERSION"="4.20"
  8. "LANGUAGE"="VBScript"
  9. "OSVERSION"="0000011"
  10. "TEXT 1"="dⁿdel dⁿ"
  11. "DESCRIPTION 1"="Common Items: Normally, Windows will display your personal items plus the "common" (aka All Users) groups inside Start->Programs. If this option is disabled, those "common" groups will no longer be displayed. IMPORTANT! If deactivated, it will hide ALL "common" items, so any Desktop Links for all users will be hidden as well!"
  12. "DESCRIPTION 2"="Programs Scrolling: In Windows 95/NT, if the Start Menu was too big to fit vertically on the screen, multiple columns were used. In Windows 98 and above, the Start Menu become scrolling. If you would prefer to see your Start Menu in multiple columns again, disable this option."
  13. "DESCRIPTION 3"="Programs Context Menu: This allows you to view a standard Explorer context menu when clicking with the right mouse button on an entry in Start->Programs. Note: disabling this will also disable the ability to use drag & drop to move the items inside Programs!"
  14. "DESCRIPTION 4"="Administrative Tools: Shows the Administrative Tools folder under Start->Programs. "
  15. "DESCRIPTION 5"="User-created Folders: If this is enabled, extra folders (like the Cascading Control Panel) can appear above the Program entry. When disabled, these folders will be hidden."
  16. "DESCRIPTION 6"="Windows Update: Controls if the link to Windows Update is visible or not. IMPORTANT: If you disabled this item, it will not only remove the item from the Start Menu but also stop Windows Update from working when you browse to the Windows Update Website (it will give you a very strange error)! This seems to be a side-effect of Windows."
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="'Multiple Columns' setting from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!"
  21. "COMMENT 2"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice."
  22. "COMMENT 3"="Thanks to Dutler, Dennis R [dennis.dutler@eds.com] for the "XP screw up" notice."
  23. "COMMENT 4"="Thanks to Mischief271268@aol.com for the "Windows Update" screw up notice."
  24. "COMMENT 5"="Thanks to GastX for the "REG_SZ/YES" bug notice."
  25.  
  26.  
  27.       sV_CommonGroups="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCommonGroups"
  28.    sV_StartMenuScroll="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" 
  29.         sV_AdminTools="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools"
  30.    sV_ProgramsContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoChangeStartMenu"
  31.         sV_SubFolders="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoStartMenuSubFolders" 
  32.             sV_WinUpd="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate"
  33.  
  34. SUB Plugin_Initialize
  35.  'NT/2000 (XP?)
  36.  Call SetUIElement(1,"Show Common Items (read Desc!)")
  37.  Call ReadIt(1,sV_CommonGroups)
  38.  
  39.  '98/2000/ME/XP 
  40.  Call SetUIElement(2,"Show Start->Programs in scrolling mode")
  41.  Call ReadIt_3(2,sV_StartMenuScroll)
  42.  
  43.  '98/2000/ME/XP
  44.  Call SetUIElement(3,"Show Start->Programs context menu")
  45.  Call ReadIt(3,sV_ProgramsContext)
  46.  
  47.  '2000/XP
  48.  Call SetUIElement(4,"Show Start->Programs->Administrative Tools")
  49.  Call ReadIt_3(4,sV_AdminTools)
  50.  
  51.  'NT/2000/ME/XP
  52.  Call SetUIElement(5,"Show user-created folders at top of Start Menu")
  53.  Call ReadIt(5,sV_SubFolders)
  54.  
  55.  '2000/XP
  56.  Call SetUIElement(6,"Show 'Windows Update' in Start Menu (read Desc!)")
  57.  Call ReadIt(6,sV_WinUpd)
  58.  
  59.  
  60. END SUB
  61.  
  62. SUB Plugin_CheckData(ElementIndex)
  63. END SUB
  64.  
  65. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  66.  Call WriteIt(1,sV_CommonGroups)
  67.  
  68.  Call WriteIt_3(2,sV_StartMenuScroll)
  69.  
  70.  Call WriteIt(3,sV_ProgramsContext)
  71.  
  72.  Call WriteIt_3(4,sV_AdminTools)
  73.  
  74.  Call WriteIt(5,sV_SubFolders)
  75.  
  76.  Call WriteIt(6,sV_WinUpd)
  77.  
  78.  'special check for Windows Update
  79.  if GetUIElementEx(6)=false then
  80.     Call MsgWarning("You have selected not to show Windows Update. Please note that this will also disable the Windows Update Website when you try to access it using Internet Explorer. Please see the description for more information.")
  81.  end if
  82.  
  83.  Call IndicateSettingChange()
  84.  Call Logoff()
  85. END SUB
  86.  
  87. SUB Plugin_Terminate
  88. END SUB
  89.  
  90.  
  91.  
  92.  
  93.  
  94. Sub ReadIt(ITM,PATH1)
  95.  if RegValueExists(PATH1)=false then 'setting available?
  96.     'no setting -> item visible
  97.     Call SetUIElementEx(ITM,true)
  98.  else
  99.     i=RegReadValue(PATH1)
  100.     if IsNumeric(i)=true then
  101.        if i=0 then 
  102.            Call SetUIElementEx(ITM,true)
  103.        end if
  104.     end if
  105.  end if
  106. End Sub
  107.  
  108. Sub ReadIt_2(ITM,PATH1)
  109.  if RegValueExists(PATH1)=false then 'setting available?
  110.     'no setting -> item not visible
  111.     Call SetUIElementEx(ITM,false)
  112.  else
  113.     i=RegReadValue(PATH1)
  114.     If IsNumeric(i)=true then   
  115.        if i=1 then 
  116.           Call SetUIElementEx(ITM,true)  
  117.        end if
  118.     end if
  119.  end if
  120. End Sub
  121.  
  122. Sub ReadIt_3(ITM,PATH1)
  123.  if RegValueExists(PATH1)=false then 'setting available?
  124.     'no setting -> item is active
  125.     Call SetUIElementEx(ITM,true)
  126.  else
  127.     s=RegReadValue(PATH1)
  128.     if LCase(s)="yes" then 
  129.        Call SetUIElementEx(ITM,true)  
  130.     end if
  131.  end if
  132. End Sub
  133.  
  134. Sub WriteIt(ITM,PATH1)
  135.  b=GetUIElementEx(ITM)
  136.  if b=true then
  137.  
  138.     s=RegReadValue(PATH1)
  139.     if IsEmpty(s)=false then
  140.        Call RegDeleteValue(PATH1)
  141.     end if
  142.  
  143.  else
  144.     Call RegWriteValue(PATH1,1,2)
  145.  end if
  146. End Sub
  147.  
  148. Sub WriteIt_2(ITM,PATH1)
  149.  b=GetUIElementEx(ITM)
  150.  if b=true then
  151.     Call RegWriteValue(PATH1,1,2)
  152.  else
  153.     Call RegWriteValue(PATH1,0,2)
  154.  end if
  155. end Sub
  156.  
  157. Sub WriteIt_3(ITM,PATH1)
  158.  b=GetUIElementEx(ITM)
  159.  if b=true then
  160.     Call RegWriteValue(PATH1,"YES",1)
  161.  else
  162.     Call RegWriteValue(PATH1,"NO",1)
  163.  end if
  164. End Sub